package com.example.liteflow.mysql.demo;

import com.example.liteflow.mysql.dto.DemoContextDTO;
import com.yomahub.liteflow.annotation.LiteflowComponent;
import com.yomahub.liteflow.core.NodeComponent;

@LiteflowComponent(id = "demoProcess", name = "demoProcess")
public class DemoProcessComponent extends NodeComponent {
    @Override
    public void process() throws Exception {
        DemoContextDTO demoContextDTO = (DemoContextDTO) this.getFirstContextBean();
        demoContextDTO.getContextMap().put("demoProcess", demoContextDTO.getContextMap().get("BUSS_ID") + "-demoProcess");
    }

}

